package org.mine.design.builder.data;


import lombok.Data;

import java.util.Arrays;
import java.util.List;

@Data
public class BaseCost {

    /**
     * 起步价
     */
    private Integer startingFare;

    /**
     * 超过多少公里,开始计算超出的阶段费用
     */
    private Integer startingKilometre;

    /**
     * 城市
     */
    private String city;

    /**
     * 每公里多少钱
     */
    private Integer stagePrice;

    public BaseCost() {
    }

    public BaseCost(Integer startingFare, Integer startingKilometre, String city, Integer stagePrice) {
        this.startingFare = startingFare;
        this.startingKilometre = startingKilometre;
        this.city = city;
        this.stagePrice = stagePrice;
    }

    public static List<BaseCost> getBaseCostList() {
        return Arrays.asList(
                new BaseCost(1, 5, "徐州", 1),
                new BaseCost(2, 5, "南京", 2),
                new BaseCost(3, 6, "苏州", 3),
                new BaseCost(4, 6, "上海", 4)
        );
    }
}
